@echo off
echo 编译双指针算法示例...
g++ -o "TwoPointers\two_pointers_demo.exe" "TwoPointers\two_pointers_demo.cpp"
if %errorlevel% equ 0 (
    echo 编译成功！
    echo 运行程序...
    "TwoPointers\two_pointers_demo.exe"
) else (
    echo 编译失败！
)
pause
